import request from '../untils/request'


export default{
    login(data){
        return request.post('/login',data)
    },
    //获取验证码
    getcode(tel){
        return request.post('/get/code',tel)
    },
    //注册接口
    userRegister(data){
        return request.post('/user/authentication',data)
    },
    //首页数据
    index(){
        return request.get('/Index/index')
    },
    //订单详情
    getCompanion(){
        return request.get('/h5/companion')
    },
    //提交订单
    createOrder(data){
        return request.post('/createOrder',data)
    },
    //订单列表
    orderList(params){
        return request.get('/order/list',{params})
    },
    //订单详情
    orderDetail(params){
        return request.get('/order/detail',{params})
    }
}